package edu.friday.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity
@Table(name = "sys_user_role", schema = "friday")
@IdClass(SysUserRoleEntityPK.class)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUserRoleEntity {
    @Id
    @Column(name = "user_id")
    private Long userId;

    @Id
    @Column(name = "role_id")
    private Long roleId;
}
